package model

import (
	"time"
)

type Candle struct {
	ID               string    `bson:"id" json:"id" toml:"id" yaml:"id"`
	ExchangeNameID   string    `bson:"exchangeNameId" json:"exchangeNameId" toml:"exchangeNameId" yaml:"exchangeNameId"`
	Base             string    `bson:"base" json:"base" toml:"base" yaml:"base"`
	Quote            string    `bson:"quote" json:"quote" toml:"quote" yaml:"quote"`
	Interval         int64     `bson:"interval" json:"interval" toml:"interval" yaml:"interval"`
	Timestamp        time.Time `bson:"timestamp" json:"timestamp" toml:"timestamp" yaml:"timestamp"`
	Open             float64   `bson:"open" json:"open" toml:"open" yaml:"open"`
	High             float64   `bson:"high" json:"high" toml:"high" yaml:"high"`
	Low              float64   `bson:"low" json:"low" toml:"low" yaml:"low"`
	Close            float64   `bson:"close" json:"close" toml:"close" yaml:"close"`
	Volume           float64   `bson:"volume" json:"volume" toml:"volume" yaml:"volume"`
	Asset            string    `bson:"asset" json:"asset" toml:"asset" yaml:"asset"`
	SourceJobID      string    `bson:"sourceJobId" json:"sourceJobId,omitempty" toml:"sourceJobId" yaml:"sourceJobId,omitempty"`
	ValidationJobID  string    `bson:"validationJobId" json:"validationJobId,omitempty" toml:"validationJobId" yaml:"validationJobId,omitempty"`
	ValidationIssues string    `bson:"validationIssues" json:"validationIssues,omitempty" toml:"validationIssues" yaml:"validationIssues,omitempty"`
}
